package io.xccit.train.model.member.domain.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;

/**
 * @author CH_ywx
 * @version 1.0
 * @create 2024/11/6
 * <p>会员请求参数</p>
 */
public class MemberDTO {

    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "^[1][3-9][0-9]{9}$", message = "手机号格式不正确")
    private String mobile;


    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    @Override
    public String toString() {
        return "MemberDTO{" +
                "mobile='" + mobile + '\'' +
                '}';
    }
}
